package com.liao.member.feign;

import com.liao.common.entity.product.ProductEntity;
import com.liao.common.entity.product.SkuEntity;
import com.liao.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient(value = "youyoumall-product")
public interface ProductFeignService {
    /**
     * 获取商品基本信息
     *
     * @param productId
     * @return
     */
    @RequestMapping("product/product/baseInfo/{productId}")
    Result<ProductEntity> baseInfo(@PathVariable("productId") Integer productId);


    /**
     * 获取sku信息
     *
     * @param skuId
     * @return
     */
    @RequestMapping("product/sku/info/{skuId}")
    Result<SkuEntity> info(@PathVariable(value = "skuId") String skuId);


}
